package com.one.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * collect_footpoint
 *
 * @author
 */
@ApiModel(value = "CollectFootpointVo",description = "用户收藏/足迹表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class CollectFootpointVo implements Serializable {
    /**
     * 唯一主键
     */
    @JsonIgnore
    @ApiModelProperty(value = "唯一主键")
    private Integer id;

    /**
     * 商品ID
     */
    @ApiModelProperty(value = "商品ID")
    private Integer productId;

    /**
     * 商品名字
     */
    @ApiModelProperty(value = "商品名字")
    private String productName;

    /**
     *  商品主图
     */
    @ApiModelProperty(value = "商品主图")
    private String mainImage;

    /**
     * 0- 收藏，1-足迹
     */
    @JsonIgnore
    @ApiModelProperty(value = "0- 收藏，1-足迹")
    private Integer type;

    /**
     * 创建时间
     */
//    @JsonIgnore
//    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
    //@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createDate;

    /**
     * 更新时间
     */
//    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
    //@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "时间")
    private Date updateDate;

    private static final long serialVersionUID = 1L;
}